package fi.piet.ec2.employee;

import java.util.Collection;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.link.PageLink;

import fi.piet.ec2.department.Department;

public class EditEmployee  extends WebPage {
	
	public EditEmployee(Employee emp, Collection<Department> depList) {
		
		add(new Label("empId", emp.getId()));
		add(new EmployeeForm("editEmployeeForm", emp, depList));
		add(new PageLink("employeePageLink", EmployeePage.class));
	}
}
